package com.pan.behavioral.Interpreter.exprerssoin;

public abstract class NonTerminalExpression implements Expression {

    protected Expression leftExpression;
    protected Expression rightExpression;

    public NonTerminalExpression(Expression leftExpression, Expression rightExpression) {
        this.leftExpression = leftExpression;
        this.rightExpression = rightExpression;
    }

    public NonTerminalExpression() {

    }

    public void setLeftExpression(Expression leftExpression) {
        this.leftExpression = leftExpression;
    }

    public void setRightExpression(Expression rightExpression) {
        this.rightExpression = rightExpression;
    }

    @Override
    public abstract Object interpreter() ;


}
